{extend name="public:base" /}
{block name="style"}
<style>
    .roleForm {
        padding: 10px;
    }
    .h30{
        height: 30px;
        line-height: 30px;
    }
</style>
{/block}
{block name="main-content"}
<div class="page-content">

    <div class="row">
        <div class="col-xs-12">
            <!-- 提示 -->
            <div class="row h30">
                <div class="col-xs-5">
                    <a href="{:url('admin/role/set')}"><span class="glyphicon glyphicon-plus addRole" >创建</span></a>&nbsp;&nbsp;
                    <a href="javascript:void(0);"><span class="glyphicon glyphicon-question-sign">帮助</span></a>
                </div>
                <div class="col-xs-7">

                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <div class="table-responsive">
                        <table class="table table-bordered" id="roleList">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>角色</th>
                                <th>状态</th>
                                <th>创建时间</th>
                                <th>更新时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {empty name="list"}
                                <tr>
                                    <td colspan="6">暂时没有数据</td>
                                </tr>

                            {else/}

                                {volist name="list" id="vo"}
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.name}</td>
                                        <td>{$vo.status}</td>
                                        <td>{$vo.created_time}</td>
                                        <td>{$vo.updated_time}</td>

                                        <td>
                                            <a href="{:url('admin/role/set','id='.$vo.id)}" class="editRole">编辑</a>
                                            <a href="{:url('admin/role/access', 'role_id='.$vo.id)}">设置权限</a>
                                        </td>
                                    </tr>
                                {/volist}
                                {if condition='$page'}
                                    <tr>
                                        <td colspan="6">{$page}</td>
                                    </tr>
                                {/if}
                            {/empty}
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>

            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->
{/block}

{block name="scripts"}
<script type="text/javascript">

</script>
{/block}